package com.kt.mes.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.kt.mes.mapper.ProlSiteActMapper;
import com.kt.mes.domain.ProlSiteAct;
import com.kt.mes.service.IProlSiteActService;

/**
 * 工位动作设定Service业务层处理
 * 
 * @author lzc
 * @date 2021-01-14
 */
@Service
public class ProlSiteActServiceImpl implements IProlSiteActService 
{
    @Autowired
    private ProlSiteActMapper prolSiteActMapper;

    /**
     * 查询工位动作设定
     * 
     * @param id 工位动作设定ID
     * @return 工位动作设定
     */
    @Override
    public ProlSiteAct selectProlSiteActById(Long id)
    {
        return prolSiteActMapper.selectProlSiteActById(id);
    }

    /**
     * 查询工位动作设定列表
     * 
     * @param prolSiteAct 工位动作设定
     * @return 工位动作设定
     */
    @Override
    public List<ProlSiteAct> selectProlSiteActList(ProlSiteAct prolSiteAct)
    {
        return prolSiteActMapper.selectProlSiteActList(prolSiteAct);
    }

    /**
     * 新增工位动作设定
     * 
     * @param prolSiteAct 工位动作设定
     * @return 结果
     */
    @Override
    public int insertProlSiteAct(ProlSiteAct prolSiteAct)
    {
        return prolSiteActMapper.insertProlSiteAct(prolSiteAct);
    }

    /**
     * 修改工位动作设定
     * 
     * @param prolSiteAct 工位动作设定
     * @return 结果
     */
    @Override
    public int updateProlSiteAct(ProlSiteAct prolSiteAct)
    {
        return prolSiteActMapper.updateProlSiteAct(prolSiteAct);
    }

    /**
     * 批量删除工位动作设定
     * 
     * @param ids 需要删除的工位动作设定ID
     * @return 结果
     */
    @Override
    public int deleteProlSiteActByIds(Long[] ids)
    {
        return prolSiteActMapper.deleteProlSiteActByIds(ids);
    }

    /**
     * 删除工位动作设定信息
     * 
     * @param id 工位动作设定ID
     * @return 结果
     */
    @Override
    public int deleteProlSiteActById(Long id)
    {
        return prolSiteActMapper.deleteProlSiteActById(id);
    }
}
